package Day3Zuoye;

import java.util.Scanner;

public class CompanyTest {
    public static void main(String[] args) {
        Company company=new Company();
        company.cname="合肥鼎力科技有限公司";
        company.address="合肥";
        company.telephone="234567876543";
        company.fanwei="前后端技术员";
        Scanner input = new Scanner(System.in);
        int choice = 0;
        while (true) {
            System.out.println("1:添加员工，2：显示全部,3:辞退员工，4:涨工资9：退出");
            choice = input.nextInt();
            if (choice == 1) {
            }
                System.out.print("请输入员工信息：");
                System.out.println("请输入工号:");
                String  num=input.next();
                System.out.println("请输入姓名:");
                String yname=input.next();
                System.out.println("请输入性别:");
                String sex=input.next();
                System.out.println("请输入职务:");
                String zhiwu=input.next();
                System.out.println("请输入薪水:");
                int money=input.nextInt();
                System.out.println("请输入身份证号:");
                String id=input.next();
                System.out.println("请输入工作年限:");
                String year=input.next();
                Yuangong yuangong=new Yuangong(num,yname,sex,zhiwu,money,id,year);
                company.add(yuangong);
    }
}
}
